﻿using SqlSugar;
using static DataModels.Enums.GeneralEnum;

namespace DataModels.Entities.Community
{
    [SugarTable]
    public class ServiceEvaluation
    {
        [SugarColumn(IsPrimaryKey = true)]
        public Guid UUID { get; set; } = Guid.NewGuid();

        /// <summary>
        /// 项目UUID
        /// </summary>
        public Guid ProjectUUID { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; set; }

        public Guid CreateUser { get; set; }

        public DateTime CreateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 是否启用
        /// </summary>
        public Status Status { get;set; }

        /// <summary>
        /// 是否评价
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public bool IsSubmit { get;set; }   

        /// <summary>
        /// 是否置顶
        /// </summary>
        public int IsTop { get; set; }

        /// <summary>
        /// 编号
        /// </summary>
        [SugarColumn(IsIdentity = true)]
        public int activitiesNumber { get; set; }
    }
}
